<m:message xmlns="http://www.w3.org/1999/xhtml"
	xmlns:m="http://jboss.com/products/seam/mail"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich">
	<m:from address="#{feedbackAction.feedbackEmail}" />
	<m:to>#{feedbackAction.feedbackFriendEmail}</m:to>

	<m:subject>#{messages['ctg']} - #{messages['label.email.abilities.sendmailtofriend.subject.showobjekt']}</m:subject>
	<m:body>
		<table>
			<tr>
				<td colspan="3" style="font-weight: bold;"><h:outputText
					value="#{messages['message.objekt.contact.senderdata']}" /></td>
			</tr>
			<tr>
				<td><h:outputText
					value="#{messages['message.objekt.contact.sendername']}" /></td>
				<td width="5px"></td>
				<td style="font-weight: bold;"><h:outputText
					value="#{feedbackAction.feedbackName}" /></td>
			</tr>
			<tr>
				<td><h:outputText
					value="#{messages['message.objekt.contact.sendermail']}" /></td>
				<td></td>
				<td style="font-weight: bold;"><h:outputText
					value="#{feedbackAction.feedbackEmail}" /></td>
			</tr>
		</table>
		<h:panelGroup rendered="#{! empty feedbackAction.feedbackMessage}">
			<p><h:outputText
				value="#{messages['message.objekt.contact.sendernote']}" /> <br />
			<i><h:outputText value="#{feedbackAction.feedbackMessage}" /> </i></p>
		</h:panelGroup>
		<h:panelGroup>
			<h:outputText
				value="#{messages['label.email.abilities.sendmailtofriend.objekttip']} #{messages[stringUtil.toString(feedbackAction.objekt.tipObjekta.idTipaObjekta)]}" />
			<hr />	
			<h2>
				<h:outputLink
					value="http://www.crotouristguide.com#{application.contextPath}/guides/objekti/objekt.seam">
					<f:param name="idObjekta" value="#{feedbackAction.objekt.idObjekta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(feedbackAction.objekt)}"/>
					<h:outputText value="#{feedbackAction.objekt.naziv}" />
				</h:outputLink>
				<h:outputText value=", #{feedbackAction.objekt.mjesto.otok.naziv}"
					rendered="#{! empty feedbackAction.objekt.mjesto.otok}" />
				, <h:outputLink
					value="http://www.crotouristguide.com#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{feedbackAction.objekt.mjesto.idMjesta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
					<h:outputText
						value="#{feedbackAction.objekt.mjesto.naziv}" />
				</h:outputLink>
			</h2>
			<rich:spacer />
			<h:outputText value="#{messages['label.desc']}:" />
			<div id="descriptionPanel"><h:outputText styleClass="desc"
				value="#{feedbackAction.objekt.getOpis(currentLang)}" />
			</div>
			<h:outputText value="#{messages['label.osobine']}"
				styleClass="title-14" />
			<rich:dataGrid var="osobina" value="#{feedbackAction.osobine}"
				id="osobineObjekta" rendered="#{!empty feedbackAction.osobine}"
				columns="5" width="100%">
				<h:outputText value="#{messages[stringUtil.merge('label.osobina.',osobina.idOsobine)]}"></h:outputText>
			</rich:dataGrid>
		</h:panelGroup>
		<rich:spacer />
		<p><b> <h:outputLink
			value="http://www.crotouristguide.com#{application.contextPath}/guides/objekti/objekt.seam">
			<f:param name="idObjekta" value="#{feedbackAction.objekt.idObjekta}"/>
			<f:param name="l" value="#{currentLang}"/>
			<f:param name="title" value="#{titleAction.getUrlTitle(feedbackAction.objekt)}"/>
			<h:outputText
				value="#{messages['label.email.abilities.sendmailtofriend.linktoctg']}" />
		</h:outputLink> </b></p>
		<hr />
		<p style="font-size: 10px; font-family: Arial;"><h:outputText
			value="#{messages['label.email.abilities.sendmailtofriend.tmplt.footer']}" />
		</p>
	</m:body>
</m:message>